package com.nursinghome.management.repository;

import com.nursinghome.management.model.Elderly;
import com.nursinghome.management.model.HealthRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HealthRecordRepository extends JpaRepository<HealthRecord, Long> {
    List<HealthRecord> findByElderlyOrderByRecordDateDesc(Elderly elderly);
}